package com.group5.onlinegame.service;

import com.group5.onlinegame.dao.IRechargeDao;
import com.group5.onlinegame.entity.Recharge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;
import java.util.List;
@Service
public class RechargeService implements IRechargeService {
    @Resource
    private IRechargeDao iRechargeDao;

    @Override
    public List<Recharge> getRechargeList() {


        return iRechargeDao.getRechargeList();
    }

    @Override
    public Recharge getRechargebyid(Integer id) {


        return iRechargeDao.getRechargebyid(id);
    }

    @Override
    public int addRecharge(Recharge recharge) {
        return iRechargeDao.addRecharge(recharge);
    }

    @Override
    public int delRecharge(int[] listid) {
        return iRechargeDao.delRecharge(listid);
    }

    @Override
    public int upRecharge(Recharge recharge) {
        return iRechargeDao.upRecharge(recharge);
    }
}
